POV-Ray : Newsgroups : povray.binaries.images : Building facades (conclusion) : Re: Building facades (conclusion) Server Time
10 Aug 2024 09:11:17 EDT (-0400)
  Re: Building facades (conclusion)  
From: StDunstan
Date: 3 Sep 2004 11:15:00
Message: <web.413889b49d4a91c9d99800df0@news.povray.org>
"Oleguer Vilella" <ole### [at] infonegociocom> wrote:
> That's very good!!!!!
>
> How did you do the clock?
>

Thanks for your comments ;)

The clock is made of several macros. I will put them on my website when
finished.

At first I wanted to have the needles of St Dunstan church's clock properly
set depending of the time and matching the lighting (which follow this time
using the macro sunpos.inc provided with povray).

Then I also made the macro to get the number and graduation at the right
place, have choice between Arabic or Roman numbers etc.

Currently, the number from (1 to 12) are stored in an array in Roman and
arabic with the necessary translation shift to get them centerd on the
middle.

But it is a bit stupid way as I only can use twelves numbers. So I cannot
use them to put number for tenth of seconds or any other circular
graduation for something else than hours.

So I am changing it to use the arabic to roman converter of David L. Kutzler
(http://objects.povworld.org/binaries/romannumbers.inc)

I found this in the documentation about text justification

**************************

9.1.1.7  How can I find the size of a text object?
"How can I find the size of a text object / center text / justify text?"

You can use the min_extent() and max_extent() functions (new in POV-Ray 3.5)
to get the corners of the bounding box of any object. While this is
sometimes not the actual size of the object, for text objects this should
be fairly accurate, enough to do alignment of the text object.

***************************

the whole set of macros will be havailable on my website when finished
(http://www.nedap.fr/stdunstan/index.htm). It is a starting web site so, for
now i just have here some links and in the technical topics the way i use
to get a lighting following the time of the day.


Post a reply to this message


Attachments:
Download '3vues.jpg' (186 KB)

Preview of image '3vues.jpg'
3vues.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.